import { baseRequest } from '../common/axios'

const request = (url, ...arg) => baseRequest(`/api/WeChat/Common/${url}`, ...arg)
export default {
	getNearestSite(data) {
		return baseRequest('/api/smsl/mto/site/getNearestSite', data, 'get')
	},
	getSiteNoByTownCode(data) {
		return baseRequest('/api/smsl/mto/site/getSiteNoByTownCode', data, 'get')
	},

	getBizOrgTree(data) {
		return baseRequest('/data/weather/bizOrgTree.json', data, 'get')
	},
	getJson(url) {
		return baseRequest(url, {}, 'get')
	}
}
